<div id="divProgressIntro" class="wrap-chung">
	<div class="dangdau">
		<div class="bordertop1"></div>
		<div class="title1">CÁC PHIÊN ĐANG DIỄN RA</div>
		<div class="subcontent">
		<script type="text/javascript">
		var auctionList = new Array();</script>
		<?php
		$auction_view = @mysql_query ( "select * from auction_view where start_time < NOW() and end_time > NOW() " );
		if (! $auction_view) {
			die ( 'errors' );
		}
		
		while ( $result = mysql_fetch_assoc ( $auction_view ) ) {
			
			?>
			<script type="text/javascript">
				auctionList.push(<?php echo $result['auctionID'] ;?>);
				
			</script>
			<div class="spdangdau" ref='bid-<?php echo $result['auctionID'];?>'>
				<div class="ctspdangdau">
					<p class="title">
						<a id="" href=""><?php echo $result['name'];?></a>
					</p>
					<br> <a id="" href="chi_tiet_san_pham.php?id=<?php echo $result['auctionID']?>"><img id="" class="img-home"
						src="../uploads/ProductUpload/<?php echo $result['image']; ?>" /></a>
					<p class="giaTT">
						Giá thị trường: <span id=""><?php echo number_format((int)$result['price'], 0, '.', ',');?> đ</span>
					</p>
					<div class="divTimeLeft dongho" ref="0">------</div>
					<p class="gia">
						<span id=""><?php echo number_format((int)$result['auction_price'], 1, '.', ',');?> đ</span>
					</p>
					<p class="nguoidau">
						<span id=""><?php echo $result['current_user_bid']?></span>
					</p>
					<p class="bt"></p>
					<div style="margin-left: 43px;">
						<a id="" class="btBid1"
							onclick="bid(<?php echo $result['auctionID'];?>); return false;"
							href="#">BID</a>
					</div>
					<div class="divErrors" style="display: none"></div>
				</div>
				<div class="footersp">
					<span id="" class="buocgia"><?php echo (int)$result['price_per_bid']; ?> đ</span>
					<div class="dtien">
						<div class="img-tien">
							<img id="" src="../images/img-coin2.png" />
						</div>
						<div class="tien">
							<span id="">x50</span>
						</div>
					</div>
				</div>
			</div>
		<?php
		
		}
		?>
		</div>
	</div>
</div>
